package sg.edu.nus.iss;

public class CONFIG {

	/*
	 * Table for MapReduce Output:

Linear Regression Output table
Key: StockCode, Date
Value: Slope, Intercept

Stochastic Oscillator Output table
Key: StockCode, Date
Value: Value

Moving Average Output table
Key: StockCode, Date
Value: Average High, Average Low, Average Close, Average Open

Relative Strength Index Output table
Key: StockCode, Date
Value: RSI Value
	 */
	
	// Have to be in sync with Config in StockEx
	public static final int WINDOW_SIZE = 15;
	
	public static final String STOCK_QUOTE_FOLDER = "/home/hadoop/workspace/StockEx/input";
	public static final String STOCK_CODE_FILENAME = "/home/hadoop/workspace/StockEx/input_code/stockCode.dat";
	public static final String LINEAR_REGRESSION_FILENAME = "/home/hadoop/workspace/StockEx/lr_output/part-r-00000";
	public static final String MOVING_AVERAGE_FILENAME = "/home/hadoop/workspace/StockEx/ma_output/part-r-00000";
	public static final String RELATIVE_STRENGTH_INDEX_FILENAME = "/home/hadoop/workspace/StockEx/rsi_output/part-r-00000";
	public static final String STOCHASTIC_OSCILLATOR_FILENAME = "/home/hadoop/workspace/StockEx/so_output/part-r-00000";

	
	public static final String STOCK_QUOTE_TABLE_NAME = "Stock";
	public static final String STOCK_QUOTE_PRIMARY_KEY = "code";
	public static final String STOCK_QUOTE_PRIMARY_KEY_TYPE = "S";
	public static final String  STOCK_QUOTE_RANGE_KEY = "date";
	public static final String  STOCK_QUOTE_RANGE_KEY_TYPE = "S";
	
	public static final String STOCK_CODE_TABLE_NAME = "StockCode";
	public static final String STOCK_CODE_PRIMARY_KEY = "code";
	public static final String STOCK_CODE_PRIMARY_KEY_TYPE = "S";
	public static final String  STOCK_CODE_RANGE_KEY = "name";
	public static final String  STOCK_CODE_RANGE_KEY_TYPE = "S";
	
	
	public static final String LINEAR_REGRESSION_TABLE_NAME = "LinearRegression";
	public static final String LINEAR_REGRESSION_PRIMARY_KEY = "code";
	public static final String LINEAR_REGRESSION_PRIMARY_KEY_TYPE = "S";
	public static final String LINEAR_REGRESSION_RANGE_KEY = "date";
	public static final String LINEAR_REGRESSION_RANGE_KEY_TYPE = "S";
	
	
	public static final String STOCHASTIC_OSCILLATOR_TABLE_NAME = "StochasticOscillator";
	public static final String STOCHASTIC_OSCILLATOR_PRIMARY_KEY = "code";
	public static final String STOCHASTIC_OSCILLATOR_PRIMARY_KEY_TYPE = "S";
	public static final String STOCHASTIC_OSCILLATOR_RANGE_KEY = "date";
	public static final String STOCHASTIC_OSCILLATOR_RANGE_KEY_TYPE = "S";
	
	public static final String MOVING_AVG_TABLE_NAME = "MovingAverage";
	public static final String MOVING_AVG_PRIMARY_KEY = "code";
	public static final String MOVING_AVG_PRIMARY_KEY_TYPE = "S";
	public static final String MOVING_AVG_RANGE_KEY = "date";
	public static final String MOVING_AVG_RANGE_KEY_TYPE = "S";
	
	
	
	public static final String RELATIVE_STRENGHT_INDEX_TABLE_NAME = "RelativeStrengthIndex";
	public static final String RELATIVE_STRENGHT_INDEX_PRIMARY_KEY = "code";
	public static final String RELATIVE_STRENGHT_INDEX_PRIMARY_KEY_TYPE = "S";
	public static final String RELATIVE_STRENGHT_INDEX_RANGE_KEY = "date";
	public static final String RELATIVE_STRENGHT_INDEX_RANGE_KEY_TYPE = "S";
	
	
	public static final String MONTH = "MONTH";
	public static final String QUARTER = "Quarter";
	public static final String YEAR = "Year";
	//public static final String SECRET_KEY = "FaK16ng2therB8hFq5KXWb0GH8lKo55PNFFYGIP7";
	//public static final String ACCESS_KEY = "AKIAIMQMCPVMQFZG4K4Q";
	//public static final String ACCESS_KEY = "AKIAIWWL2MUPNAHNCUXQ";
	//public static final String SECRET_KEY = "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";
	public static final String ACCESS_KEY = "AKIAI4LDMCJYHSTVLF4Q";
	public static final String SECRET_KEY = "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";
	public static final String END_POINT = "https://dynamodb.ap-southeast-1.amazonaws.com";
	
	}
